package com.weipu.common.facade.model;

import org.json.JSONObject;

import com.weipu.common.constants.ServerConstant;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;

public class CreditCardModel implements Parcelable {

	private String cardNumber;

	private String cardHolder;

	private String ExpireMonth;

	private String ExpireYear;

	private String CVVCode;

	private String IssuingBank;

	private String CreditCardTokenID;
	
	private String CreditCardID;
	
	private String GatewayType;//EGP或GlobleBill
	
	@SuppressWarnings("unchecked")
	public CreditCardModel(Parcel source) {
		cardNumber = source.readString();
		cardHolder = source.readString();
		ExpireMonth = source.readString();
		ExpireYear = source.readString();
		CVVCode = source.readString();
		IssuingBank = source.readString();
		CreditCardTokenID = source.readString();
		CreditCardID = source.readString();
		GatewayType = source.readString();
	}

	public CreditCardModel() {
	}

	public static final Parcelable.Creator<CreditCardModel> CREATOR = new Creator<CreditCardModel>() {

		@Override
		public CreditCardModel[] newArray(int size) {
			// TODO Auto-generated method stub
			return new CreditCardModel[size];
		}

		@Override
		public CreditCardModel createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new CreditCardModel(source);
		}
	};

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel parcel, int arg1) {
		parcel.writeString(cardNumber);
		parcel.writeString(cardHolder);
		parcel.writeString(ExpireMonth);
		parcel.writeString(ExpireYear);
		parcel.writeString(CVVCode);
		parcel.writeString(IssuingBank);
		parcel.writeString(CreditCardTokenID);
		parcel.writeString(CreditCardID);
		parcel.writeString(GatewayType);
	}
	
	
	public String getCreditCardID() {
		return CreditCardID;
	}

	public void setCreditCardID(String creditCardID) {
		CreditCardID = creditCardID;
	}

	public String getGatewayType() {
		return GatewayType;
	}

	public void setGatewayType(String gatewayType) {
		GatewayType = gatewayType;
	}

	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	public String getCardHolder() {
		return cardHolder;
	}

	public void setCardHolder(String cardHolder) {
		this.cardHolder = cardHolder;
	}

	public String getExpireMonth() {
		return ExpireMonth;
	}

	public void setExpireMonth(String expireMonth) {
		ExpireMonth = expireMonth;
	}

	public String getExpireYear() {
		return ExpireYear;
	}

	public void setExpireYear(String expireYear) {
		ExpireYear = expireYear;
	}

	public String getCVVCode() {
		return CVVCode;
	}

	public void setCVVCode(String cVVCode) {
		CVVCode = cVVCode;
	}

	public String getIssuingBank() {
		return IssuingBank;
	}

	public void setIssuingBank(String issuingBank) {
		IssuingBank = issuingBank;
	}

	public String getCreditCardTokenID() {
		return CreditCardTokenID;
	}

	public void setCreditCardTokenID(String creditCardTokenID) {
		CreditCardTokenID = creditCardTokenID;
	}

}
